import request from "../utils/request.js";

export function getGoodsAll(query) { //全部商品列表
    return request({
        url: '/ShanglalaProduct/sale/page',
        method: 'get',
        params:query
    })
}

export function getGoodsGroup() { //商品分组
    return request({
        url: '/ProductGroup/list',
        method: 'get',
    })
}

export function getGoods(query) { //分组商品列表
    return request({
        url: '/ShanglalaProduct/showProduct',
        method: 'get',
        params: query
    })
}

export function getMoreGoods(query) { //更多商品
    return request({
        url: '/ShanglalaProduct/moreProduct',
        method: 'get',
        params: query
    })
}

export function getNewsList(query){ //新闻列表
    return request({
        url:'/StoreNews/list',
        method:'get',
        params:query
    })
}

export function getNewsClassList(query){ //新闻分类
    return request({
        url:'/StoreNewsCategory/list',
        method:'get',
        params:query
    })
}